@extends('layouts.admin')
@section('content')

    <!--面包屑导航 开始-->
    <div class="crumb_warp">
        <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
        <i class="fa fa-home"></i> <a href="#">首页</a> &raquo; <a href="#">商品管理</a> &raquo; 添加商品
    </div>
    <!--面包屑导航 结束-->

	<!--结果集标题与导航组件 开始-->
	<div class="result_wrap">
        <div class="result_title">
            <h3>分类管理</h3>
        </div>
        <div class="result_content">
            <div class="short_wrap">
                <a href="{{url('admin/category/create')}}"><i class="fa fa-plus"></i>新增分类</a>
                <a href="{{url('admin/category')}}"><i class="fa fa-refresh"></i>全部分类</a>
            </div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
@if(count($errors) > 0)
    <div class="mark">
        @if(is_object($errors))
            @foreach($errors->all() as $error)
                <p>  {{$error}}</p>
            @endforeach
        @else
            <p>{{$errors}}</p>
        @endif

    </div>

@endif
    <div class="result_wrap">
        <form action="{{url('admin/link/'.$data->link_id)}}" method="post">
            <input type="hidden" name="_method" value="put">
            {{csrf_field()}}
            <table class="add_tab">
                <table class="add_tab">
                    <tbody>
                    <tr>
                        <th><i class="require">*</i> 名称：</th>
                        <td>
                            <input type="text" class="lg" name="link_name" value="{{$data->link_name}}">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require">*</i> 链接标题：</th>
                        <td>
                            <input type="text" class="lg" name="link_title"  value="{{$data->link_title}}">
                        </td>
                    </tr>
                    <tr>
                        <th>链接：</th>
                        <td>
                            <input type="text" class="lg" name="link_url"  value="{{$data->link_url}}">
                        </td>
                    </tr>
                    <tr>
                        <th>序号：</th>
                        <td>
                            <input type="text" class="lg" name="link_order"  value="{{$data->link_order}}">
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type="submit" value="提交">
                            <input type="button" class="back" onclick="history.go(-1)" value="返回">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </table>
        </form>
    </div>
@endsection
<script>
    var ue = UE.getEditor('editor');
</script>